package com.luxf.base.domainevent.rocketmq.utils;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * @author fast66
 **/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class TopicUtils {
    /**
     * 生成唯一的mq-topic
     *
     * @param classTypeName className
     * @return topic
     */
    public static String uniqueTopic(String classTypeName) {
        return classTypeName.replaceAll("\\.", "-");
    }
}
